package ai.people.netmon.msgsearch.domain.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

/**
 * @author LiGuanNan
 * @date 2022/6/23 16:55
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "user-im-telegram")
public class TelegramAccountRegisterInfo implements Serializable {

    @Id
    @Field(name = "id", type = FieldType.Text)
    private String id;

    @Field(name = "phone_location", type = FieldType.Text)
    private String phoneLocation;

    @Field(name = "tags", type = FieldType.Text)
    private String tags;

    @Field(name = "user_name", type = FieldType.Text)
    private String userName;

    @Field(name = "user_type", type = FieldType.Text)
    private String platform;

    @Field(name = "phone", type = FieldType.Text)
    private String phone;

    /**
     * twitter
     */
    @Field(name = "account_link", type = FieldType.Text)
    private String accountLink;

    @Field(name = "face", type = FieldType.Text)
    private String face;

    @Field(name = "description", type = FieldType.Text)
    private String description;

    @Field(name = "join_date", type = FieldType.Text)
    private String joinDate;
}
